function getValueByKey<T extends Object, K extends keyof T>(obj: T, key: K): T[K] {
    return obj[key]
}